<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
?>
<!doctype html>
<html lang="sk" dir="ltr">
<head>
	<?php echo $this->Html->charset(); ?>
	<title><?php echo isset($this->pageTitle) ? $this->pageTitle . ' | ' : ''; ?>MNH group</title>
	<?php
		echo $this->Html->meta('icon');

	//	echo $this->Html->css('cake.generic');

		echo $this->Html->css('reset.css');
		echo $this->Html->css('prototip.css');
		echo $this->Html->css('style.css');

		echo $this->Html->script('prototype.js');
		echo $this->Html->script('prototip.js');
		echo $this->Html->script('mnhis.js');
		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
	
	
</head>
<body>
	<div id="header">
		<div class="w900">
			<h1 id="logo">
				<?php
					echo $this->Html->link(__('MNH group', true), '/', array('class' => 'teacher'));
				?>
			</h1>
			<?php
			if ($actualUser && $actualUser['id']) {
				echo $this->element('logininfo');
			}
			?>
		</div>
	</div>
	<div class="w900">

			<?php
				echo $this->Session->flash();
				if ($this->Session->check('Auth.User.id')) {
					echo $this->element('submenu');
				}

				echo $this->fetch('content');
			?>

		<div id="footer">
			<?php
				$copyYear = '2012';
				if (date('Y') > $copyYear) {
					$copyYear .= ' - ' . date('Y');
				}
			?>
			<p>Všetky práva vyhradené &copy; <?php echo $copyYear; ?></p>
		</div>
	</div>
	<div class="clear"></div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>